<?php
/**
 * Created by PhpStorm.
 * User: hao
 * Date: 2018/10/22
 * Time: 3:34 PM
 */

namespace app\api\validate;

use think\Validate;

class IDMustBePostiveInt extends BaseValidate
{
    protected $rule = [
        'id' => 'require|idPostiveInteger',
        'num' => 'in:1,2,3'
    ];

    protected $message = [
        'id' => 'id必须为正整数'
    ];


}